//
//  SelecteStoreCell.m
//  WGFGlobalHouses
//
//  Created by welldone on 15/5/22.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import "StoreSelecteCell.h"
#import "NearbyCellData.h"

@interface StoreSelecteCell ()

@property (weak, nonatomic) IBOutlet UIButton *flagBtn;

@property (weak, nonatomic) IBOutlet UILabel *nameLab;

@end



@implementation StoreSelecteCell




+(instancetype) cellWithTableView:(UITableView *)tableview{
    
    
    static NSString *ID = @"StoreSelecteCell";
    StoreSelecteCell *cell = [tableview dequeueReusableCellWithIdentifier:ID];
    if (cell == nil)
    {
        cell = [[[NSBundle mainBundle]loadNibNamed:@"StoreSelecteCell" owner:nil options:nil]lastObject];
    }
    
    return cell;
}

+(CGFloat)getHight:(CellBaseData*)data withTableView:(UITableView*)tableView{

    return 46;

}

-(void)setData:(NearbyCellData*)data{
    
    [self.nameLab setText:data.title];
}

-(void)setTitle:(NSString*)data{
    
    [self.nameLab setText:data];
}


-(void)setIsChecked:(Boolean)data{

    [self.flagBtn setHighlighted:data];
}

@end
